package com.example.demo.rabbitMq;

/**
 * 队列、交换机、绑定匹配键(路由键)
 */
public interface RabbitMqConstants {

    /** 死信交换机key */
    String SX_Exchange_Key = "x-dead-letter-exchange";
    /** 死信路由key */
    String SX_Routing_Key = "x-dead-letter-routing-key";

    /** 延迟消息相关设置 */
    String Delayed_Type = "x-delayed-type";
    String Delayed_Type_Value = "direct";
    String Delayed_Message = "x-delayed-message";
    String Delayed_Queue = "delayed_queue";
    String Delay_Exchange = "delay_exchange";
    String Delay_Routing = "delay_routing";

    /** 死信队列 */
    String SX_Queue = "sx_queue";
    /** 死信交换机value */
    String SX_Exchange_Value = "sx_exchange";
    /** 死信路由value */
    String SX_Routing_Value = "sx_routing";

    /** 直连队列名 */
    String DirectQueue = "DirectQueue";
    /** 直连交换机 */
    String DirectExchange = "DirectExchange";
    /** 直连路由键 */
    String DirectRoutingKey = "DirectRoutingKey";

    /** 主题交换机队列名 */
    String TopicQueue = "TopicQueue";
    String TopicQueueFirst = "TopicQueueFirst";
    String TopicQueueSecond = "TopicQueueSecond";
    /** 主题交换机 */
    String TopicExchange = "TopicExchange";
    /** 主题路由键  #通配符，如 xxx.#,则绑定此交换机的所有队列，只要路由键是以xxx开头，都可以接收到消息 */
    String TopicRoutingKey = "topic.#";
    String TopicRoutingKeyFirst = "topic.first";
    String TopicRoutingKeySecond = "topic.second";

}
